package com.wjjun.test.ui.itemviewmodel

import com.wjjun.base.ui.viewmodel.BaseItemViewModel
import com.wjjun.app.R
import com.wjjun.data.bean.TestBean2

/**
 *
 * author : wangjunjun
 * date   : 2022/6/29
 * desc   :
 */
class Test2ItemViewModel() : BaseItemViewModel<TestBean2>() {

    override fun getItemLayoutId(): Int {
        return R.layout.item_test_item_2
    }

    constructor(name: String) : this() {
        var bean = TestBean2(name, 1)
        setData(bean)
    }

    override fun getItemSpanSize(maxSpan: Int): Int {
        return 2
    }
}